#include <iostream>
#include "ston_dbc.h"

// Needed only for using StonLog
#include "ston_log.h"

// Function to be able to define your dependencies
void StonDBC::setupDepends() {
    // Call the static keepAlive() of every Singleton class that this one depends on
    StonLog::keepAlive(); // [TEST] (Un)Comment to define dependencies
}

StonDBC::StonDBC() : message("Using DB connection\n") {
    std::cout << "Constructing Singleton: DB connection\n";
}

StonDBC::~StonDBC() {
    std::cout << "Destructing Singleton: DB connection\n";
}

void StonDBC::doUse() {
    std::cout << message;
}
